<?php

# Loading framework
include_once("lib/init.php");

# Load configuration file
$config = new Config_Php(dirname(__FILE__) . "/config.php");

define("BASE_PATH", dirname(__FILE__));

$rrdConf = $config->getDataset("rrd");
Rrd_Database::setPath($rrdConf->getString("path", BASE_PATH . "/db/"));

$graphConf = $config->getDataset("graph");
Rrd_Graph::setPath($graphConf->getString("path", BASE_PATH . "/img/graph/"));

?>
